package com.qin.mall.service;

import com.qin.mall.dto.PmsBrandDto;
import com.qin.mall.model.PmsBrand;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Leisure
 * create 2022 2022/10/11 21:14
 **/
public interface PmsBrandService {
    //查询所有品牌
    List<PmsBrand> listAllBrand();
    //创建新的品牌
    int createBrand(PmsBrandDto pmsBrandDto);
    //更新品牌
    @Transactional
    int updateBrand(Long id, PmsBrandDto pmsBrandDto);
    //通过id删除品牌
    int deleteBrand(Long id);
    //批量删除
    int deleteBrand(List<Long> ids);
    //品牌分页列表
    List<PmsBrand> listBrand(String keyword,int pageNum, int pageSize);
    //通过id获取品牌
    PmsBrand getBrand(Long id);
    //批量更新显示状态
    int updateShowStatus(List<Long> ids, Integer showStatus);
    //批量更新厂家制造商状态
    int updateFactoryStatus(List<Long> ids, Integer factoryStatus);
}
